-- GENERATED SPELL FOR [Lieutenant Commander Thalvos] --


function spell0_16978(pUnit, Event) --@Shield Slam,n/a--
pUnit:FullCastSpellOnTarget(8242,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16978', 2276, 1)
end

function spell1_16978(pUnit, Event) --@Strike,n/a--
pUnit:FullCastSpellOnTarget(11976,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16978', 533, 1)
end

function Sorts_16978(pUnit, Event)
local choix_sorts_16978 = math.random(0, 1)
if choix_sorts_16978 == 0 then
pUnit:RegisterEvent('spell0_16978', 1, 1)
end
if choix_sorts_16978 == 1 then
pUnit:RegisterEvent('spell1_16978', 1, 1)
end
end

function mob16978_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16978', math.random(1500, 3000), 1)
end

function mob16978_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16978_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16978_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16978, 1, 'mob16978_Action')
RegisterUnitEvent(16978, 2, 'mob16978_Leave')
RegisterUnitEvent(16978, 3, 'mob16978_Kill')
RegisterUnitEvent(16978, 4, 'mob16978_Die')
